package cn.xfdzx.android.apps.shop.contract;

import java.util.Map;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.PeiSongBeen;
import cn.xfdzx.android.apps.shop.bean.ReturnReasonBean;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface PeisongyuanContract {
    interface Model {
        Flowable<PeiSongBeen> peisongyuan(String order_id );

        Flowable<ReturnReasonBean> getRefundRreason();
        Flowable<ReturnReasonBean> getAfterServiceRequest(Map<String, Object> param);
    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onPeiSongSuccess(PeiSongBeen bean);

        void getRefundRreasonSuccess(ReturnReasonBean bean);

        void getAfterServiceRequestSuccess(ReturnReasonBean bean);
    }

    interface Presenter {
        /**
         *
         */
        void peiSong (String order_id);
        void getRefundRreason();
        void getAfterServiceRequest(Map<String, Object> param);
    }
}
